package com.kgc.server.dao;

import com.kgc.server.pojo.Address;
import com.kgc.server.pojo.Page;
import com.kgc.server.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface UserDao {
    public List getRegular();

    public List getUserList();

    public int setUserList(User user);

    public List getUserListFy(Page page);

    public int getCount();

    public int delUserListById(int id);

    public List<User> getUserListByID(int id);

    public int updateUserListByID(User user);

    public int setAddressById(Address address);

    public List getAddress(int userId);

    public List getAddressById(int id);

    public int updataAddressById(Address address);

    public int updataMrAddress(int id);

    public int delAddressById(int id);

    public int updataAll(int userId);

    public int setUserPassWordById(@Param("email") String email, @Param("password")String password,@Param("userName")String userName);



}
